var status = 0;


function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 0 && status == 0) {
            cm.dispose();
            return;
        }
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {
		if (cm.getChar().getGender() == 0) {
			cm.sendSimple("Hey hun! great to see you here!\r\nCan we help you with something?\r\n#L1##bEh... I want to marry a girl#l\r\n#L2#I just wanted to tell you that i love you!#k#l");
		} else {
			cm.sendSimple("Hey hun! great to see you here!\r\nCan we help you with something?\r\n#L1##bEh... I want to marry a boy#l\r\n#L2#I just wanted to tell you that i love you!#k#l");
		}
	} else if (status == 1) {
		if (selection == 1) {
			cm.sendYesNo("Oh that's great darling!\r\nSo you want us to give you our blessing? Well, are you willing to pay us 10mil to buy alcohol?");
		} else {
			cm.sendOk("Ok, we love you too darling!");
			cm.dispose();
		}
	} else if (status == 2) {
		if (cm.getMeso() >= 10000000) {
			cm.gainMeso(-10000000);
			cm.setBlessed();
			cm.sendOk("Ok cuty, you have our blessing, go get married!\r\nWell, let's go to walmart to buy BEER!");
			cm.dispose();
        	} else {
			cm.sendOk("Your dad really is addicted, without money, no blessing!");
		}
	}
    }
}